<?php

namespace app\common\model;

/**
 * 用户收货地址
 * Class UserAddress
 * @package app\common\model
 */
class UserAddress extends Base
{
    protected $table = 'user_address';

    protected $createTime = 'create_time';
    protected $updateTime = '';

    /**
     * 自动写入
     * @var array
     */
    protected $insert = array(
        'create_time',
    );

    protected $type = array(
        'id' => 'integer',
    );

    public $editfield = [
        array('name' => 'id', 'type' => 'hidden'),

//        array('name' => 'phone', 'title' => '手机号', 'type' => 'readonly', 'help' => ''),
//        array('name' => 'user_name', 'title' => '昵称', 'type' => 'readonly', 'help' => ''),
//        array('name' => 'email', 'title' => '邮箱', 'type' => 'readonly', 'help' => '用户邮箱，用于找回密码等安全操作'),

        array('name' => 'name', 'title' => '姓名', 'type' => 'text', 'help' => '中文姓名'),
        array('name' => 'phone', 'title' => '收货人手机号', 'type' => 'text', 'help' => '收货人手机号'),
        array('name' => 'address', 'title' => '具体地址', 'type' => 'text', 'help' => '具体地址'),
    ];


}